package cn.java76.springboot.demo1.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

@ApiModel
public class OAdmin implements Serializable {

  @ApiModelProperty("编号，自动生成")
  private long id;
  @ApiModelProperty("登录名")
  private String uname;
  @ApiModelProperty("密码")
  private String upass;
  @ApiModelProperty("等级，1最高，3最低")
  private long rolelevel;
  @ApiModelProperty("手机号")
  private String tele;
  @ApiModelProperty("职务，随便写")
  private String position;
  @ApiModelProperty("状态，默认为1，可以使用")
  private int inuse;
  @ApiModelProperty("创建时间，自动生成")
  private Date createtime;
  @ApiModelProperty("修改时间，自动生成")
  private Date modifytime;

  public OAdmin(String uname, String upass, long rolelevel, String tele, String position, int inuse, Date createtime, Date modifytime) {
    this.uname = uname;
    this.upass = upass;
    this.rolelevel = rolelevel;
    this.tele = tele;
    this.position = position;
    this.inuse = inuse;
    this.createtime = createtime;
    this.modifytime = modifytime;
  }

  public OAdmin(long id, String uname, String upass, long rolelevel, String tele, String position, Date createtime, Date modifytime) {
    this.id = id;
    this.uname = uname;
    this.upass = upass;
    this.rolelevel = rolelevel;
    this.tele = tele;
    this.position = position;
    this.createtime = createtime;
    this.modifytime = modifytime;
  }

  public OAdmin() {
  }

  public OAdmin(String uname, String upass, long rolelevel, String tele, String position, int inuse) {
    this.uname = uname;
    this.upass = upass;
    this.rolelevel = rolelevel;
    this.tele = tele;
    this.position = position;
    this.inuse = inuse;
  }

  public OAdmin(long id, String uname, String upass, long rolelevel, String tele, String position) {
    this.id = id;
    this.uname = uname;
    this.upass = upass;
    this.rolelevel = rolelevel;
    this.tele = tele;
    this.position = position;
    this.inuse = inuse;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getUname() {
    return uname;
  }

  public void setUname(String uname) {
    this.uname = uname;
  }


  public String getUpass() {
    return upass;
  }

  public void setUpass(String upass) {
    this.upass = upass;
  }


  public long getRolelevel() {
    return rolelevel;
  }

  public void setRolelevel(long rolelevel) {
    this.rolelevel = rolelevel;
  }


  public String getTele() {
    return tele;
  }

  public void setTele(String tele) {
    this.tele = tele;
  }


  public String getPosition() {
    return position;
  }

  public void setPosition(String position) {
    this.position = position;
  }


  public int getInuse() {
    return inuse;
  }

  public void setInuse(int inuse) {
    this.inuse = inuse;
  }


  public Date getCreatetime() {
    return createtime;
  }

  public void setCreatetime(Date createtime) {
    this.createtime = createtime;
  }


  public Date getModifytime() {
    return modifytime;
  }

  public void setModifytime(Date modifytime) {
    this.modifytime = modifytime;
  }

  @Override
  public String toString() {
    return "OAdmin{" +
            "id=" + id +
            ", uname='" + uname + '\'' +
            ", upass='" + upass + '\'' +
            ", rolelevel=" + rolelevel +
            ", tele='" + tele + '\'' +
            ", position='" + position + '\'' +
            ", inuse=" + inuse +
            ", createtime=" + createtime +
            ", modifytime=" + modifytime +
            '}';
  }
}
